// router/index.js
const routes = [
    {
      path: '/student',
      component: Layout,
      meta: { role: 'STUDENT' }, // 角色权限标识
      children: [
        { path: 'courses', component: CourseSelection }, // 学生选课页
        { path: 'my-courses', component: MyCourses }      // 已选课程
      ]
    },
    {
      path: '/teacher',
      component: Layout,
      meta: { role: 'TEACHER' },
      children: [
        { path: 'manage', component: CourseManage },      // 教师课程管理
        { path: 'grades', component: GradeInput }         // 成绩录入
      ]
    }
  ];
  
  